package com.medicine.ecg.mapper;

import com.medicine.pojo.Element;
import com.medicine.pojo.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author ChenJie
 * @date 2021/5/24
 */

@Mapper
@Repository
public interface PatientMapper {

    public Patient queryPatientById(int id);
    //按照姓名实现模糊查询
    public List<Patient> queryPatientByName(String name);

    public List<Patient> queryPatientList();

    public Patient queryPatientInfoById(int id);

  //   查询异常心电信息
    public List<Map<String , Object>> queryEcgExceptionById(int id);
  //   按id查询心电图
    public List<Map<String , Object>>  queryEcgInfoById(int id);
//    默认患者信息
    public Patient queryEcgInfoDefault();
//    默认结果
    public Map<String,Object> queryEcgResult();
//    诊断结果
    public Map<String ,Object> queryEcgDiagnosis(Integer id);
//    element
    public List<Element> queryElementInfo();
}
